﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TotalApplication.AngelSix.directory.data;

namespace TotalApplication.AngelSix.directory
{
    public static class DirectoryStructure
    {
        public static List<DirectoryItem> GetLogicDirectories()
        {
            return Directory.GetLogicalDrives()
                .Select(drive => new DirectoryItem(drive, DirectoryItemType.Drive))
                .ToList();
        }

        public static List<DirectoryItem> GetLogicDirectories(string fullPath)
        {
            return Directory.GetDirectories(fullPath)
                .Select(drive => new DirectoryItem(drive, DirectoryItemType.Drive))
                .ToList();
        }
    }
}
